package main

//"fmt"
//"go-way/handler/aboutStruct"
//"go-way/handler/fmtPrint"
//"go-way/handler/genPicture"
//"go-way/handler/operString"
//"log"
//"net/http"
//"os"

//"go-way/handler/aboutStruct"
//"go-way/handler/fmtPrint"
//"go-way/handler/genPicture"
//"go-way/handler/operString"
//"log"
//"net/http"
//"os"
// "go-way/learn-struct"

func main() {

	// r := gin.Default()
	// r.GET("/", func(*gin.Context ctx) {

	// })
	// learn_struct.Test()
	//http.HandleFunc("/genPicture", func(w http.ResponseWriter, r *http.Request) {
	//	genPicture.GenPicture(os.Stdout)
	//})
	//
	//http.HandleFunc("/operationString", func(w http.ResponseWriter, r *http.Request) {
	//	operString.OperString()
	//})
	////http.HandleFunc("/use-map", func(w http.ResponseWriter, r *http.Request) {
	////	use_map.GenFileMap()
	////})
	//http.HandleFunc("/fmtPrint", func(w http.ResponseWriter, r *http.Request) {
	//	str := fmtPrint.FmtPrint()
	//	// w.Header().Set("Content-Type")
	//	w.WriteHeader(http.StatusAccepted)
	//	_, _ = w.Write([]byte(str))
	//})
	//
	//log.Fatal(http.ListenAndServe("localhost:9000", nil))
	//
	//p := aboutStruct.Person{Name: string(22)}
	//
	//fmt.Println(p)

	//helpers.Dup1()

	//ways.Add(3, 3)

	//ways.GetLen()

	//learnPointer.LearnPointer()

	//ways.ExportDefaultStruct()

	//learnfunc.LearnFunc1()

	//a := learnfunc.LearnFunc2(11)
	//fmt.Println(a(10))

	//a := learnfunc.LearnFunc4()
	//fmt.Println(a)

	//b, b1 := learnfunc.LearnFunc1(10, 20)
	//fmt.Println(b, b1) // 200 30

	//a := learnfunc.LearnFunc6()
	//fmt.Println(a)

	//ways.ReadFile()

	// go run main.go > xx.gif
	//handler.GenImage(os.Stdout)

	//getUrl.GetUrl2()
	//webServer.GenServer()
	//helpers.OperString()

	// 获取操作系统类型和系统环境变量的值
	//ways.GetSysEnvParams()

	//helpers.FmtWord()

	//n()
	//m()
	//n()

	// 启动一个协程
	//go ways.Running()
	//// 同时还可以接受命令行输入
	//var input string
	//fmt.Scanln(&input)
	// fmt.Fprintf()
}

//var a = "G"
//
//func n() { print(a) }
//
//func m() {
//	a := "O"
//	print(a)
//}
